import EventEmitter from 'events'

class IsShowStore extends EventEmitter {
    constructor() {
        super();
        this.visible = false;
    }

    addChangeListener(callback) {
        this.on('change', callback)
    }

    removeChangeListener(callback) {
        this.removeListener('change', callback);
    }

    emitChange() {
        this.emit('change');
    }

    changeIsShow(visible) {
        this.visible = visible;
    }

    getIsShow() {
        return this.visible;
    }

}

let isShowStore = new IsShowStore();
export default isShowStore;